﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Game1
    {
        public void Game(game zhiye)
        {
            /*Console.WriteLine("请输入英雄职业：");
            string str = Console.ReadLine();
            object v1 = game.Parse(str);
            game g = game.战士;
            bool v = g.Equals(str);
            Console.WriteLine(v);*/

            game g = game.战士;
            if (zhiye==g)
                {
                    Console.WriteLine(g + "的技能：" + "碎石打击、烈焰锚钩、战斗咆哮");

                }
            game a = game.法师;
            if (zhiye == a)
            {
                Console.WriteLine(a + "的技能：" + "巨浪冲击、元素突击、复仇杀戮");

            }
            game b = game.精灵;
            if (zhiye == b)
            {
                Console.WriteLine(b + "的技能：" + "减速陷阱、能量浪潮、旋风剑舞");

            }


            
        }
    }
}
